<?php
/* @var $this UserController */
?>
<div class="row-fluid" style="min-height:300px;padding:15px 0;border:1px solid #EEE;">
    <blockquote><b>账号信息</b></blockquote>
    <div class="span" style="width:580px;margin:0px 160px">
        <?php
        $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
            'id' => 'CreateForm',
            'type' => 'horizontal',
            'enableAjaxValidation' => false,
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
        echo $form->textFieldRow($user, 'mobile', array('style' => 'width:246px;'));
        echo $form->textFieldRow($user, 'company', array('style' => 'width:246px;'));
        echo $form->textAreaRow($user, 'remark', array('style' => 'width:246px;resize: none;', 'rows' => 8,));
        ?>
        <hr>
        <div class="alert">
            <center>如无需修改密码，留空即可。</center>
        </div>
        <?php
        echo $form->passwordFieldRow($user, 'password', array('style' => 'width:246px;'));
        echo $form->passwordFieldRow($user, 'passwordConfirm', array('style' => 'width:246px;'));
        ?>
        <hr>
        <div class="alert">
            <center>登陆账号请牢记！！</center>
            <center>
                <?php
                echo CHtml::label($user->name);
                ?>
            </center>

        </div>



    </div>
    <div class="span" style="width:900px;margin:0 20px;">
        <hr>
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => '保存',
            'htmlOptions' => array('class' => 'submit', 'style' => 'width:120px;margin:15px 390px;'),
        ));
        $this->endWidget();
        ?>
    </div>
</div>
